package com.gang.service;

import com.gang.pojo.TokenURI;
import com.gang.utils.JSONUtil;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.UUID;

@Service
public class DataServiceImpl implements DataService{
    @Override
    public UUID setTokenURI(TokenURI tokenURI) {
        ArrayList<String> list = new ArrayList<>();
        list.add(tokenURI.getKeyword());
        list.add(tokenURI.getFilepath());
        list.add(tokenURI.getFileformat());
        list.add(tokenURI.getMsg());
        return JSONUtil.setJson(list);
    }
}
